package security;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.web.RedirectStrategy;

public class MyRedirectStrategy implements RedirectStrategy{

	public void sendRedirect(HttpServletRequest request, HttpServletResponse response,
			String url) throws IOException {
		
		if(null != url && !"".equals(url))
			response.sendRedirect(url);
		/** 实现不同登录不同的转向 */
	}
}
